package cn.wolfcode.gitflow.service.impl;

import cn.wolfcode.gitflow.domain.Product;
import cn.wolfcode.gitflow.service.ISeckillService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class SeckillServiceImpl implements ISeckillService {
    @Override
    public Product get(Long id) {
        log.info("修复找商品的出现的bug。，。。");
        log.info("查询到的商品为" + id);
        return null;
    }

    @Override
    public boolean kill(Product product) {
        log.info("修复秒杀中的出现的bug。，。。");
        log.info("操作秒杀业务中。。。。。");
        this.killAdvice();
        return true;
    }

    public void killAdvice(){
        log.info("秒杀功能上线后的重大bug修复");
    }
}
